package com.ysy.logistics.entities.supplier;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ysy.common.entities.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @ClassDescription:
 * @Author:姚斯羽
 * @Create:2025/3/25 14:27
 **/
@Data
@TableName("sup_order")
@Schema(name = "sup_order", description = "采购订单")
public class SupOrder  extends BaseEntity {
    @Schema(description = "订单id")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @Schema(description = "订单编号")
    @TableField(value = "order_num")
    private String orderNum;

    @Schema(description = "供应商id")
    @TableField(value = "supplier_id")
    private String supplierId;

    @Schema(description = "供应商名称")
    @TableField(value = "supplier_name")
    private String supplierName;

    @Schema(description = "订单总价")
    @TableField(value = "total_price")
    private Integer totalPrice;

    @Schema(description = "订单状态")
    @TableField(value = "order_status")
    private String orderStatus;

    @Schema(description = "入库状态")
    @TableField(value = "storage_status")
    private Integer storageStatus;

    @Schema(description = "入库时间")
    @TableField(value = "storage_time")
    private String storageTime;

    @Schema(description = "快递单号")
    @TableField(value = "express_id")
    private String expressId;

    @Schema(description = "采购人")
    @TableField(value = "purchaser")
    private String purchaser;

    @Schema(description = "备注")
    @TableField(value = "remark")
    private String remark;

}
